﻿namespace DistanceLearning.Models
{
    public class TeacherWrapper
    {
        public TeacherWrapper(Teacher teacher)
        {
            var ud = teacher.UserDetails;
            TeacherID = teacher.TeacherID;
            FirstName = ud.FirstName;
            LastName = ud.LastName;
            PatronmyicName = ud.PatronymicName;
        }

        public int TeacherID { get; private set; }

        public string FirstName { get; private set; }

        public string LastName { get; private set; }

        public string PatronmyicName { get; private set; }

        public string DisplayText
        {
            get { return string.Format("{0} {1}. {2}.", LastName, FirstName[0], PatronmyicName[0]); }
        }
    }
}